package com.kl.feign.fallback;

import com.kl.domain.CityOrderDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.SameCityServiceFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SameCityServiceFeignFallback implements SameCityServiceFeign {

    @Override
    public Result<CityOrderDTO> selectById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<CityOrderDTO>> selectBySendPhone(String sendPhone) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<CityOrderDTO>> selectByConsigneePhone(String consigneePhone) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<CityOrderDTO>> selectByStaffId(String staffId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<CityOrderDTO>> selectByMeetStatus() {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result insertById(CityOrderDTO cityOrderDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateConsigneeById(Long id, String consigneeName, String consigneePhone, String consigneeAddress) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateConsigneeBySuccess(Long id, Long staffId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updatePickedUp(Long id, String serialNumber, String alyOrderNember) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateCompletion(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateOvertime(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateChargeback(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result grabOder(Long id, Long staffId) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
